const express = require('express');
const router = express.Router();

const researchResultService = require('../service/researchResultService')

// 表单验证
const expressJoi = require('@escook/express-joi')
const { researchResult_insert,researchResult_update } = require('../rule/researchResultRule')

router.get('', researchResultService.researchResult);

router.get('/byId', researchResultService.researchResultById);

router.post('/add', expressJoi(researchResult_insert), researchResultService.add);

router.post('/delete',researchResultService.delete);

router.post('/update',expressJoi(researchResult_update) ,researchResultService.update);


module.exports = router;
